package com.sugon.modules.device.model.vo;

import com.sugon.entity.DevAmTicketEntity;
import com.sugon.entity.DevMaintenanceTicketEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 设备维护延期申请参数
 *
 * @author YuXD
 * @since 2023-01-13
 */
@Data
public class DevMaintenanceDelayApplyParam implements Serializable {

    @NotBlank(message = "设备维护工单必选")
    private String ticketId;

    @NotNull(message = "变更时间必填！")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date changeTime;

    @NotBlank(message = "变更事项必填！")
    private String item;

    @NotBlank(message = "变更原因必填！")
    private String reason;

    /*************************以下信息系统中间回填****************************/

    /**
     * 申请人ID
     */
    private String applier;

    /**
     * 设备维护工单
     */
    private DevMaintenanceTicketEntity devMaintenanceTicket;

    /**
     * 设备维护工单
     */
    private DevAmTicketEntity devAmTicket;

}
